Automattic\WooCommerce\Blocks\BlockTemplatesController C

Total Complexity 102
Dependencies 5
Dependents 1
Total lines 600
Lines of code 344
Logical lines of code 193
Comment lines 184
Methods 15
Properties 0

Methods 15

Method Rating Maintainability Complexity Lines of code
add_block_templates()
B
40 20 56
init()
B
40 15 61
get_block_templates_from_woocommerce()
A
42 13 52
get_block_template_fallback()
A
43 12 47
get_block_file_template()
A
47 8 34
add_block_template_details()
S
59 6 15
remove_block_template_support_for_shop_page()
S
60 6 13
render_woocommerce_template_part()
S
63 6 9
check_should_use_blockified_product_grid_templates()
S
64 4 10
update_product_archive_title()
S
64 4 10
add_archive_product_to_eligible_for_fallback_templates()
S
59 2 16
block_template_is_available()
S
65 3 9
get_block_templates_from_db()
S
75 1 4
get_block_templates()
S
72 1 5
get_template_path_from_woocommerce()
S
78 1 3